package com.example.myapplication.ui.mine

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import com.example.myapplication.R
import com.example.myapplication.ui.movie.SelectCinemaActivity
import kotlinx.android.synthetic.main.activity_cinema__choose_time_slot.*
import kotlinx.android.synthetic.main.activity_order_detalis.*

class OrderDetalisActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_order_detalis)

        val cinema_name = intent.getStringExtra("cinema_name")
        val movie_name = intent.getStringExtra("movie_name")
        val date = intent.getStringExtra("date")
        val language = intent.getStringExtra("language")
        val start_time = intent.getStringExtra("start_timie")
        val price = intent.getDoubleExtra("price", 0.0)
        val seat = intent.getStringExtra("seat")
        Log.d("000000", "price = ${price}--${movie_name}")
        cinema_name_head.text = cinema_name
        order_movie_name.text = movie_name
        order_date.text = date
        order_start_time.text = start_time
        movie_language.text = language
        movie_price.text = price.toString()
        cinema_name_bottom.text = cinema_name
        ticket_seat.text = seat
    }
}